package com.example.demo2.mapper;


import com.example.demo2.entity.Method;
import com.example.demo2.entity.Target;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MethodMapper {
    //按id查询
    Method findById(Integer courseId);
    //按名字查询
    Method findByName(String courseName);
    //查询所有
    List<Method> findAll(@Param("userId") Integer userId);
    //修改教学环节
    boolean updateTargetById(@Param("courseId") Integer courseId, @Param("teacheWay") String teacheWay);
    //修改评价方式关键词
    boolean updateEvaluationById(@Param("courseId") Integer courseId,@Param("evaluaKeywords") String evaluaKeywords);


}